Skip to content

fix(pm-console-edge): keep BRIDGE narrowed in bridgeFetch closure - #14455

Merged
dezren39 merged 1 commit into
mainfrom
fix/pm-console-edge-bridge-narrowing
Nov 24, 2026
Merged

dezren39 merged 1 commit into
mainfrom
fix/pm-console-edge-bridge-narrowing

Conversation

@dezren39

@dezren39 dezren39 commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Fixes the red main-branch `pm-console-edge deploy` (run 45425727853): `src/worker.ts` TS18048 `env.BRIDGE` possibly undefined inside the arrow closure.

Hoists `env.BRIDGE` into a local so narrowing holds; fail-closed `undefined` kept when the binding is absent. No behaviour change.

Closes #14373

{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-24T15:54:10Z",
    "session_id": "ses_e5df1c16213ffemfh3Uc8RunpH",
    "lane": null,
    "host": "amd",
    "worktree": "/home/user/git/code-fix-bridge",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/user/git/code-fix-bridge",
      "repo": "developing-today/code",
      "branch": "fix/pm-console-edge-bridge-narrowing",
      "sha": "40d39c174812dbe2d1fded9bde4653451c6795a2"
    },
    "auth_subject": "oc-code-05",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Hoist env.BRIDGE into a local so the optional binding stays narrowed inside
the arrow function; fixes TS18048 in the deploy type-check (#14373).
@coderabbitai

coderabbitai Bot commented Nov 24, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 3 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 0d9a166e-7d23-4cf3-a26f-5f9eea4295d4
Commits

Reviewing files that changed from the base of the PR and between ac02dd2 and 40d39c1.

Files selected for processing: 1

  • pm-stack/console/edge/src/worker.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@dezren39
dezren39 merged commit 6319ae8 into main Nov 24, 2026
2 checks passed
@dezren39
dezren39 deleted the fix/pm-console-edge-bridge-narrowing branch November 24, 2026 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bridge build-out S7 — PM stack direct bridge access at the edge (adopts #13502)

1 participant